/**
 *
 * @param {Array} fids [1,2,3]
 */
class delF {
  static delFeature({ service, fids, docLayer }) {
    var deleteService = new Zondy.Service.EditDocFeature(
      service.docName,
      service.layerId,
      {
        ip: 'localhost',
        port: '6163',
      }
    )
    /* 删除多个值 1,2,3 */
    deleteService.deletes(fids.join(','), onPntSuccess(docLayer))
    function onPntSuccess(docLayer) {
      return function (result) {
        if (result) {
          docLayer.refresh()
          alert('删除点要素成功')
        } else {
          alert('删除点要素失败！')
        }
      }
    }
  }
}
export { delF }
